import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../components/uniapp/Home.vue'
import Login from '../views/Login.vue'
import Register from '../views/Register.vue'
import Main from "@/views/Main.vue";
import Price from "@/views/Price.vue";
import ListLeft from "@/components/uniapp/bar/ListLeft.vue";
import contact from "@/components/contact.vue";
import CategoryOne from "@/components/uniapp/bar/CategoryOne.vue";
import CategoryTwo from "@/components/uniapp/bar/CategoryTwo.vue";
import allzi from "@/components/uniapp/bar/allzi.vue";

Vue.use(VueRouter)

const routes = [

    {
        path: '/',
        name: 'Home',
        component: Home
    }, {
        path: '/login',
        name: 'Login',
        component: Login
    },
    {
        path: '/Register',
        name: 'Register',
        component: Register
    },

    {
        path: '/Main',
        name: 'Main',
        component: Main
    },
    {
        path: '/contact',
        name: 'contact',
        component: contact
    },
    {
        path: '/categoryOne',
        component: CategoryOne
    },
    {
        path: '/categoryTwo',
        component: CategoryTwo
    },
    {
        path: '/allzi',
        component: allzi
    },

    {
        path: '/Price',
        name: 'Price',
        component: Price
    },
    {
        path: '/brand/:id',
        name: 'ListLeft',
        component: ListLeft,
    }
]
const router = new VueRouter({
    mode: 'history',
    base: process.env.BASE_URL,
    routes
})

export default router
